package com.codingman.springbootdemo6;

import org.springframework.stereotype.Component;
import org.aspectj.lang.JoinPoint;  
import org.aspectj.lang.annotation.Aspect;  
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;  

@Aspect
@Component
public class Demo1 {
	@Pointcut("execution(* Foo.*(..))")
	public void a() {
	}

	@Before("a()")
	public void myadvice(JoinPoint jp)
	{
		System.out.println("Before Advice");
	}
}
